//
//  CYAssetDetailCell.m
//  CreditAddressBook
//
//  Created by Mosu&Cuu on 16/2/22.
//  Copyright © 2016年 Lee. All rights reserved.
//

#import "CYAssetDetailCell.h"
#import "CYAssetDetailmodel.h"

@implementation CYAssetDetailCell

-(void) setModel:(CYAssetDetailmodel *)model{
    NSString *str =model.createTime;
    NSDate *date = [NSDate dateWithTimeIntervalSince1970:str.longLongValue/1000];
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
    [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    self.AssetTime.text = [NSString stringWithFormat:@"%@",[dateFormatter stringFromDate:date]];
    self.SurplusAccount.text = [NSString stringWithFormat:@"余额:%.2f",model.surplusAccount];

     
        self.AssetType.text = model.eventKey;
        self.AssetCount.text = [NSString stringWithFormat:@"%@ %.2f", model.incrementId,model.account];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
